<?php /* Smarty version Smarty-3.1.18, created on 2015-09-28 14:37:19
         compiled from "E:\www\gfour\ws\Admin\View\Chat\special_list.html" */ ?>
<?php /*%%SmartyHeaderCode:28259560035c497bdb6-87028886%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '82839e81a784cd7a105b61667ba972f1d54af26a' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\special_list.html',
      1 => 1443410572,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28259560035c497bdb6-87028886',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_560035c4b548a6_54550450',
  'variables' => 
  array (
    '_C' => 0,
    'special_list' => 0,
    'special' => 0,
    'user_list_page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_560035c4b548a6_54550450')) {function content_560035c4b548a6_54550450($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\www\\gfour\\ws\\Qiaqia\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
             <button data-id="addchat" data-href="index.php?g=admin&m=chat&a=add_chat" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 新建特殊项弹幕</button>
            </div>
            <div class="am-btn-group am-btn-group-xs">
              <button  type="button" data-action="del_chat" class="am-btn am-btn-default hy-js-delall"><span class="am-icon-trash-o"></span> 批量删除</button>
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"><input class="hy-js-selectall" type="checkbox" /></th>
                <th class="table-title">标题</th>
                <th class="table-type">副标题</th>
				<th class="table-type">关联弹框组</th>
                <th class="table-date">背景色</th>
                <th class="table-date">创建时间</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	<?php  $_smarty_tpl->tpl_vars['special'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['special']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['special_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['special']->key => $_smarty_tpl->tpl_vars['special']->value) {
$_smarty_tpl->tpl_vars['special']->_loop = true;
?>
            <tr>
              <td><input class="hy-js-id" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
"/></td>
              <td><?php echo $_smarty_tpl->tpl_vars['special']->value['title'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['special']->value['subtitle'];?>
</td>
			  <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['special']->value['group_name'])===null||$tmp==='' ? "暂无" : $tmp);?>
</td>
              <td><img width="50%" <?php if ($_smarty_tpl->tpl_vars['special']->value['color']) {?>src="/ws/Mobile/Webroot/gf/images/chat/<?php echo $_smarty_tpl->tpl_vars['special']->value['color'];?>
_content.png"<?php } else { ?>src="/ws/Mobile/Webroot/gf/images/chat/color1_content.png"<?php }?>   ></td>
              <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['special']->value['addtime'],"Y-m-d");?>
</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <button data-id="editad_<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" data-href="index.php?g=admin&m=chat&a=edit_chat&id=<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" class="am-btn am-btn-default am-btn-xs am-text-secondary hy-js-href"><span class="am-icon-pencil-square-o"></span> 编辑</button>
					<button data-id="adrule_<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['special']->value['title'];?>
-规则管理" data-href="index.php?g=admin&m=chat&a=rule_list&bid=<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 规则管理</button>
					<!--
					<?php if ($_smarty_tpl->tpl_vars['special']->value['group_id']>0) {?>
					<button data-id="group_<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['special']->value['title'];?>
-关联弹框组" data-href="index.php?g=admin&m=chat&a=group_content&id=<?php echo $_smarty_tpl->tpl_vars['special']->value['group_id'];?>
" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 关联弹框组</button>
					<button data-id="group2_<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['special']->value['title'];?>
-弹框内容" data-href="index.php?g=admin&m=chat&a=box_list&id=<?php echo $_smarty_tpl->tpl_vars['special']->value['group_id'];?>
" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 弹框内容</button>
                    <button data-id="user_box_<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['special']->value['title'];?>
-参与记录" data-href="index.php?g=admin&m=chat&a=box_user_list&group_id=<?php echo $_smarty_tpl->tpl_vars['special']->value['group_id'];?>
" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 参与记录</button>
				  
					<?php }?>
					-->
					<button data-param ="{ url:'index.php?g=admin&m=chat&a=del_chat&id=<?php echo $_smarty_tpl->tpl_vars['special']->value['id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                  </div>
                </div>
              </td>
            </tr>
             <?php } ?> 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  <?php echo $_smarty_tpl->tpl_vars['user_list_page']->value;?>

  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    <script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jscolor.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		
		
		var path = "<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
"
		function changColor(id,obj){
			if ($(obj).next('img').length == 0) {
				console.info($(obj).html());
				$(obj).parent().append('<img src="'+path+'images/loading.gif"/>');
			} else {
				$(obj).next('img').attr('src', path+'images/loading.gif').show();
			}
			var url ="/ws/index.php?g=admin&m=chat&a=changColor";
			var color = $("#color_"+id).val();
			var date ={
				id:id,color:color
			}
			
			$.post(url,date,function(result){
				console.info(result);
				if (result.error == 0) {
					$(obj).next('img').attr('src', path+'images/yes.gif');
				} else {
					$(obj).next('img').attr('src', path+'images/no.gif');
				}
			},"json")
		}
	</script>
	</body>
</html>
<?php }} ?>
